﻿using PSDClientService.SystemSettings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PSDDeviceSNTool
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (AppSettings.Enabled)
            {
                FrmLogin login = new FrmLogin();
                if (login.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    Application.Run(new FrmSN());
                }
            }
            else
            {
                MessageBox.Show("未找到配置文件");
            }
        }
    }
}
